sysroot=$OHOS_NDK_HOME/native/sysroot/

bindgen $sysroot/usr/include/napi/native_api.h -o src/gen.rs \
	--rustfmt-configuration-file $PWD/rustfmt.toml\
	--no-layout-tests \
	--merge-extern-blocks \
	--no-prepend-enum-name \
	--blocklist-item NAPI_VERSION \
	--blocklist-item NAPI_VERSION_EXPERIMENTAL \
	--blocklist-item NAPI_AUTO_LENGTH \
	--allowlist-file ".*native_api.h" -- \
	--sysroot=$sysroot -I$sysroot/usr/include/aarch64-linux-ohos --target=aarch64-linux-ohos
